# -- coding: utf-8 --
# @File: init_alert_sources.py
# @Time: 2025/5/14 16:39
# @Author: windyzhao
from apps.alerts.common.source_adapter.constants import DEFAULT_SOURCE_CONFIG
from apps.alerts.constants import AlertsSourceTypes, AlertAccessType

# 内置告警源配置
BUILTIN_ALERT_SOURCES = [
    {
        "name": "RESTful",
        "source_id": "restful",
        "source_type": AlertsSourceTypes.RESTFUL,
        "config": DEFAULT_SOURCE_CONFIG,
        "access_type": AlertAccessType.BUILT_IN,
        "is_active": True,
        "is_effective": True,
        "description": "内置的restful告警源, 监控系统可以通过RESTful API的方式推送EVENT",
        "logo": ""
    },
    {
        "name": "NATS",
        "source_id": "nats",
        "source_type": AlertsSourceTypes.NATS,
        "config": DEFAULT_SOURCE_CONFIG,
        "access_type": AlertAccessType.BUILT_IN,
        "is_active": True,
        "is_effective": True,
        "description": "内置NATS告警源, 周期拉取NATS网关数据",
        "logo": ""
    }
]
